package org.crud4j.core.test;

import java.util.Collection;
import java.util.Date;

import org.crud4j.core.annotation.CrudBean;
import org.crud4j.core.annotation.CrudBrowsable;
import org.crud4j.core.annotation.CrudGeneratedValue;
import org.crud4j.core.annotation.CrudId;
import org.crud4j.core.annotation.CrudInstanceLabel;
import org.crud4j.core.annotation.CrudLabel;
import org.crud4j.core.annotation.CrudRemoveMark;

@CrudBean
@CrudInstanceLabel("bean.name")
@CrudLabel("Teacher")
public class Teacher {

	private String id;

	private String name;

	private Date removeDate;

	private Collection<Student> students;

	@CrudId
	@CrudGeneratedValue
	@CrudLabel("Identifier")
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@CrudBrowsable(1)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@CrudRemoveMark
	public Date getRemoveDate() {
		return removeDate;
	}

	public void setRemoveDate(Date removeDate) {
		this.removeDate = removeDate;
	}

	public Collection<Student> getStudents() {
		return students;
	}

	public void setStudents(Collection<Student> students) {
		this.students = students;
	}

}
